//
//  CustomView.h
//  FaceRecognition
//
//  Created by zz on 16/12/2.
//  Copyright © 2016年 Sylar. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CustomPhotoViewDelegate <NSObject>

@optional
/**切换前后摄像头*/
- (void)switchCameraAction:(id)sender;

/**拍照*/
- (void)takePhotoAction:(id)sender;

/**取消拍摄*/
- (void)cancelCameraAction:(id)sender;


@end

@interface CustomPhotoView : UIView

@property (nonatomic,weak) id<CustomPhotoViewDelegate> delegate;

@property (nonatomic,weak) id<CustomPhotoViewDelegate> cameraDelegate;

/**相机中间透明层*/
@property (nonatomic,strong) UIView *clear;

@end
